package it.unibo.progetto.unit;

import static org.junit.Assert.*;
import it.unibo.progetto.domain.IBoat;
import it.unibo.progetto.domain.IFlagDisplay;

import org.junit.Test;

public class IFlagDisplayTestCase 
{
	protected IFlagDisplay flagDisplay = null; // TODO Da istanziare
	
	@Test
	public void invariant()
	{
		IBoat boat1 = null; // TODO Da istanziare
		IBoat boat2 = null;
		IBoat boat3 = null;
		
		flagDisplay.setFlag(boat1);
		flagDisplay.setFlag(boat2);
		flagDisplay.clearFlag(boat3);
		
		assertEquals(3, flagDisplay.getDisplayedFlags().length);
		boolean[] expectedflags = {true, true, false};
		boolean[] actualFlags = flagDisplay.getDisplayedFlags();
		for(int i=0; i < 3; i++)
		{
			assertEquals(expectedflags[i], actualFlags[i]);
		}
	}
}
